<?php echo form_open('admin_entreprise/ajouter_entreprise', array('id' => 'register'));?>
<div id="content">
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
        <div id="title_content">Ajouter Entreprise</div>
    <?php echo form_open_multipart('admin_entreprise/ajouter_entreprise'); ?>
        <table class="form_content" width="100%">
      	<tr>
            <td>Nom</td>
            <td>
                <?php if (form_error('name') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('name'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="name" size="35" maxlength="40" value="<?php echo set_value('name'); ?>" /></td>
        </tr>
        <tr>
            <td><?php echo lang('description'); ?></td>
            <td>
                <?php if (form_error('description') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('description'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="text" class="form_input" name="description" size="35" maxlength="40" value="<?php echo set_value('description'); ?>" /></td>
        </tr>
              
        <tr>
            <td colspan="2"><input type="submit" name="submit" value="<?php echo lang('add')?>" class="form_submit" /></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>